package com.banksoft.cps.dao;

import com.banksoft.cps.bean.TransportCompany;
import com.banksoft.cps.bean.query.TransportCompanyQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/10.
 */
@Repository
public interface TransportCompanyDao {

    List<TransportCompany> list(TransportCompanyQuery query);

    long count(TransportCompanyQuery query);

    void insert(TransportCompany bean);

    void update(TransportCompany bean);

    TransportCompany findById(String id);

    List<TransportCompany> listByIdList(List<String> idList);

    TransportCompany findByAccount(String account);


    void deleteByIds(String[] ids);

}
